﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Work.UI.Web.MVC.Controllers;

namespace Work.UI.Web.MVC.Code.WindsorInstallers
{
    public class ControllerInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register
            (
                Component.For<RegistrationController>().LifeStyle.Transient,
                Component.For<HomeController>().LifeStyle.Transient,
                Component.For<ResumeController>().LifeStyle.Transient,
                Component.For<VacancyController>().LifeStyle.Transient,
                Component.For<SearchController>().LifeStyle.Transient,
                Component.For<ProfileController>().LifeStyle.Transient
            );
        }
    }
}